﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    BuscarDepartamento
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
    <link rel="Stylesheet" type="text/css" media="screen" href="../../../Content/jPages.css" />
    <script src="../../../Scripts/jPages.js" type="text/javascript"></script>
    <script src="../../../Scripts/Validaciones.js" type="text/javascript"></script>
    <script src="../../../Scripts/Departamento.js" type="text/javascript"></script>
    <link rel="Stylesheet" type="text/css" media="screen" href="../../../Content/Edificio.css" />

    <label for="Edificio">Edificio:</label>
    <select id="Edificio" onchange="cargarPisos()" class="text ui-widget-content ui-corner-all"></select>
    <br></br>
                 
    <label for="Tipo">Tipo:</label>
    <select id="Tipo" class="text ui-widget-content ui-corner-all"></select>
    <br></br>

    <label for="Pisito">Piso:</label>
    <select id="Pisito" class="text ui-widget-content ui-corner-all"></select>
    <br></br>

    <label for="Numero">Número:</label>
    <input type="text" id="Numero" class="text ui-widget-content ui-corner-all" maxlength="18"/>
    <label id="errorNumero" class="erroresClase" style="color: Red"></label>
    <br></br>

    <label for="Area">Área:</label>
    <input type="text" id="Area" class="text ui-widget-content ui-corner-all" maxlength="18"/>
    <label id="errorArea" class="erroresClase" style="color: Red"></label>
    <br></br>

    <label for="Habitaciones">N° Habitaciones:</label>
    <input type="text" id="Habitacion" class="text ui-widget-content ui-corner-all" maxlength="50"/>
    <label id="errorHabitacion" class="erroresClase" style="color: Red"></label>
    <br></br>

    <label for="Banios">N° Baños:</label>
    <input type="text" id="Banio" class="text ui-widget-content ui-corner-all" maxlength="50"/>
    <label id="errorBanio" class="erroresClase" style="color: Red"></label>
    <br></br>

    <input type="submit" id = "botonBuscar" value="Buscar" class="submit-button" />
    <input type="submit" id = "botonCancelar" value="Cancelar" class="submit-button" />
    <input type="submit" onclick="refrescar()" id = "botonLimpiar" value="Limpiar" class="submit-button" /><br></br>
                    

    <div id = "tablaDinamica">
          
    </div>

    <div class="holder" id="holder"></div>

    <div><input id="ModificarBoton" type="submit" value="Modificar"/>

         <input id="EliminarBoton" type="submit" value="Eliminar"/></div>

    <div id="dialog-form" title="Modificar Departamento">
        
        <p class = "validateTips">Modifique los campos que crea necesarios</p>
        
        <fieldset>
        
        <label for="Edificio">Edificio: (*)</label>
        <select id="EdificioDepartamento" onchange="cargarPisosDepartamento()" class="text ui-widget-content ui-corner-all"></select>
        <br></br>
                 
        <label for="Tipo">Tipo: (*)</label>
        <select id="TipoDepartamento" class="text ui-widget-content ui-corner-all"></select>
        <br></br>

        <label for="Pisito">Piso: (*)</label>
        <select id="PisitoDepartamento" class="text ui-widget-content ui-corner-all"></select>
        <br></br>

        <label for="Numero">Número: (*)</label>
        <input type="text" id="NumeroDepartamento" class="text ui-widget-content ui-corner-all" maxlength="18"/>
        <label id="errorNumero" class="erroresClase" style="color: Red"></label>
        <br></br>

        <label for="Area">Área: (*)</label>
        <input type="text" id="AreaDepartamento" class="text ui-widget-content ui-corner-all" maxlength="18"/>
        <label id="errorArea" class="erroresClase" style="color: Red"></label>
        <br></br>

        <label for="Habitaciones">N° Habitaciones: (*)</label>
        <input type="text" id="HabitacionDepartamento" class="text ui-widget-content ui-corner-all" maxlength="50"/>
        <label id="Label4" class="erroresClase" style="color: Red"></label>
        <br></br>

        <label for="Banios">N° Baños: (*)</label>
        <input type="text" id="BanioDepartamento" class="text ui-widget-content ui-corner-all" maxlength="50"/>
        <label id="errorBanio" class="erroresClase" style="color: Red"></label>
        <br></br>

        </fieldset>    

    </div>
</asp:Content>
